<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib prefix="ww" uri="/struts-tags" %>
<link href="../css/Browser.css" rel="stylesheet" type="text/css">
<link href="../css/netrunk.css" rel="stylesheet" type="text/css">
<link href="../css/site.css" rel="stylesheet" type="text/css">

<form  method="post" action="documentmanagerdiv.action?action=edit" name="tjForm2" onSubmit="return isForm2(tjForm2)">
  <table border="0" class="ListShort">
    <tr class="Header">
      <td colspan="4">��������</td>
    </tr>

  <tr class="DataField1">
      <td class="tit">�û����</td>
      <td class="txt1"><ww:property value="userId" /><input type="hidden" name="userId" value='<ww:property value="userId" />'></td>
	  <td class="tit"></td>
	  <td class="txt1"></td>
    </tr>
    <tr class="DataField1">
      <td class="tit">�û�����*</td>
      <td class="txt1"><input type="text" name="userName"></td>
      <td class="tit">��λ*</td>
      <td class="txt1"><input type="text" name="unit"></td>
    </tr>
    <tr class="DataField1">
      <td class="tit">����*</td>
      <td class="txt1"><input type="text" name="department"></td>
      <td class="tit">֤��������*</td>
      <td class="txt1"><input type="text" name="certificate"></td>
    </tr>
    <tr class="DataField1">
      <td class="tit">��ϵ�绰</td>
      <td class="txt1"><input type="text" name="telephone"></td>
      <td class="tit">��ѯ����MAC��ַ</td>
      <td class="txt1"><input type="text" name="physicalAddress"></td>
    </tr>
    <tr class="DataField1">
      <td class="tit">��ѯ����IP��ַ</td>
      <td class="txt1"><input type="text" name="ipAddress"></td>
      <td class="tit">�ۿ���</td>
      <td class="txt1"><input type="text" name="discount"></td>
    </tr>
    <tr class="DataField1">
      <td class="tit">���</td>
      <td class="txt1"><input type="text" name="blance"></td>
      <td class="tit">&nbsp;</td>
      <td class="txt1">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="4" style="text-align:center; height:35px;"><input type="submit" name="Submit" value="�ύ" class="button1">
      <input type="reset" name="Submit2" value="����" class="button1"></td>
    </tr>
  </table>
</form>
<SCRIPT LANGUAGE="JavaScript">

function isForm2(myForm2){
	if(myForm2.userName.value==""){
		alert("�û�������Ϊ��");
		myForm2.userName.focus();
		return false;
	}
	if(myForm2.unit.value==""){
		alert("��λ����Ϊ��");
		myForm2.unit.focus();
		return false;
	}
	if(myForm2.department.value==""){
		alert("���Ų���Ϊ��");
		myForm2.department.focus();
		return false;
	}
	if(myForm2.certificate.value==""){
		alert("���֤�Ų���Ϊ��");
		myForm2.certificate.focus();
		return false;
	}
	
}
 
</SCRIPT>
<script language=vbs>
sub onShowUserID()
	id = window.showModalDialog("/admin/browsermain.action?url=/admin/documentmanager.action")
	if (Not IsEmpty(id)) then
	if id(0)<> 0 then
	manageridspan.innerHtml = id(1)
	netrunk.ManagerID.value=id(0)
	else 
	manageridspan.innerHtml = ""
	netrunk.ManagerID.value=""
	end if
	end if
end sub
</script>
